package com.iot08.api.response;

import com.iot08.common.entity.app.DeviceAttention;
import lombok.Data;

import java.io.Serializable;

/**
 * @author cwj
 * @description
 * @date 2025/4/8 18:05
 **/
@Data
public class DeviceAttentionResp implements Serializable {

     private String daId;

     private String imei;

     private String name;

     private String apply_openid;

     private String openid;

     private String type;

     private String action;

     private String relationship;

     private Integer relationship_image_id;

     private String msgTitle;

     private String msgContent;

     private Long time;
     
     /**
      * @description 设置属性
      * @author cwj
      * @param [deviceAttention]
      * @return void
      * @date @time 2025/4/8 18:27
      **/
     public void settingDeviceAttentionRespObject(DeviceAttention deviceAttention) {
         this.setDaId(deviceAttention.getId());
         this.setImei(deviceAttention.getImei());
         this.setName(deviceAttention.getName());
         this.setType(deviceAttention.getType());
         this.setApply_openid(deviceAttention.getApply_openid());
         this.setOpenid(deviceAttention.getOpenid());
         this.setAction(deviceAttention.getAction());
         this.setRelationship(deviceAttention.getRelationship());
         this.setRelationship_image_id(deviceAttention.getRelationship_image_id());
         this.setMsgContent(deviceAttention.getMsgContent());
         this.setMsgTitle(deviceAttention.getMsgTitle());
         this.setTime(deviceAttention.getTime());
     }
}
